package com.lwl.blue.excel.quotation;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>  </p>
 *
 * @Date: 2021/11/29 17:00
 * @version: V1.0
 * @Decription:
 * @author: 蓝文良
 */
@Data
public class QuotationExport {
    @ApiModelProperty(name = "quotationName", value = "报价单名称")
    @ExcelProperty(value = "报价单名称", index = 0)
    private String quotationName;
    @ApiModelProperty(name = "quotationNo", value = "报价单编号")
    @ExcelProperty(value = "报价单编号", index = 1)
    @NotBlank(message = "报价单编号不能为空")
    private String quotationNo;
    @ApiModelProperty(name = "customerId", value = "客人ID")
    @ExcelProperty(value = "客人ID", index = 2)
    @NotNull(message = "客人ID不能为空")
    private Integer customerId;
    @ApiModelProperty(name = "quotationTime", value = "报价时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "报价时间", index = 3)
    private Date quotationTime;
    @ApiModelProperty(name = "currencyCode", value = "币别")
    @ExcelProperty(value = "币别", index = 4)
    private String currencyCode;
    @ApiModelProperty(name = "harborFor", value = "FOR港口")
    @ExcelProperty(value = "FOR港口", index = 5)
    private String harborFor;
    @ApiModelProperty(name = "remark", value = "备注")
    @ExcelProperty(value = "备注", index = 6)
    private String remark;
    @ApiModelProperty(name = "customerName", value = "客人名称")
    @ExcelProperty(value = "客人名称", index = 7)
    private String customerName;
}